/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.behavioural.mediator;

/**
 *
 * @author Chelsea
 */
public class AmericanSeller {
Mediator mediator;
float priceInDollars;
public AmericanSeller(Mediator mediator,float priceInDollars){
this.mediator=mediator;
this.priceInDollars=priceInDollars;
this.mediator.registerAmericanSeller(this);
}
public boolean isBidAccepted(float bidInDollars){
if(bidInDollars>=priceInDollars){
System.out.println("Selleracceptsthebidof"+bidInDollars+"dollarsnn");
return true;
}else{
System.out.println("Sellerrejectsthebidof"+bidInDollars+"dollarsnn");
return false;
}
}

}
